/* /Layout/MainLayout.razor.rz.scp.css */
.page[b-0a2omzzf50] {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main[b-0a2omzzf50] {
    flex: 1;
    background: #e2e8f0;
    min-width: 0; /* prevent overflow in flex */
}

.sidebar[b-0a2omzzf50] {
    background: #0f172a;
}

.top-row[b-0a2omzzf50] {
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    justify-content: flex-end;
    height: 3.5rem;
    display: flex;
    align-items: center;
    padding: 0 1.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

article[b-0a2omzzf50] {
    padding: 1.5rem 2rem;
}

/* ── Desktop ── */
@media (min-width: 641px) {
    .page[b-0a2omzzf50] {
        flex-direction: row;
    }

    .sidebar[b-0a2omzzf50] {
        width: 240px;
        height: 100vh;
        position: sticky;
        top: 0;
        flex-shrink: 0;
    }

    .top-row[b-0a2omzzf50] {
        position: sticky;
        top: 0;
        z-index: 10;
    }
}

/* ── Mobile ── */
@media (max-width: 640.98px) {
    .page[b-0a2omzzf50] {
        flex-direction: column;
    }

    .sidebar[b-0a2omzzf50] {
        width: 100%;
        position: sticky;
        top: 0;
        z-index: 100;
        flex-shrink: 0;
    }

    /* ukryj breadcrumb na mobile — niepotrzebny */
    .top-row[b-0a2omzzf50] {
        display: none;
    }

    article[b-0a2omzzf50] {
        padding: 1rem;
    }
}
/* /Layout/NavMenu.razor.rz.scp.css */
/* ── Top bar (brand + hamburger) ── */
.top-row[b-5je7972kfj] {
    height: 3.5rem;
    background: rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    position: relative;
    z-index: 101;
}

.navbar-brand[b-5je7972kfj] {
    font-size: 1rem;
    font-weight: 700;
    color: white !important;
    letter-spacing: 0.02em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.navbar-toggler[b-5je7972kfj] {
    background: rgba(255,255,255,0.1);
    border: none;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.15s;
}
.navbar-toggler:hover[b-5je7972kfj] { background: rgba(255,255,255,0.18); }

/* ── Nav scrollable wrapper — flex column so user sticks to bottom ── */
.nav-scrollable[b-5je7972kfj] {
    display: flex;
    flex-direction: column;
}

/* ── Scrollable content area ── */
.nav-content[b-5je7972kfj] {
    flex: 1;
    overflow-y: auto;
    padding: 0.5rem 0 0.25rem;
    /* hide scrollbar but keep functionality */
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.1) transparent;
}
.nav-content[b-5je7972kfj]::-webkit-scrollbar { width: 4px; }
.nav-content[b-5je7972kfj]::-webkit-scrollbar-track { background: transparent; }
.nav-content[b-5je7972kfj]::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 4px; }

/* ── Collapsible section headers ── */
.nav-section-header[b-5je7972kfj] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.65rem 1.5rem 0.2rem;
    margin-top: 0.2rem;
    cursor: pointer;
    user-select: none;
    transition: opacity 0.15s;
}
.nav-section-header:hover[b-5je7972kfj] { opacity: 0.8; }
.nav-section-header span[b-5je7972kfj] {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255,255,255,0.3);
}
.nav-section-chevron[b-5je7972kfj] {
    font-size: 0.6rem;
    color: rgba(255,255,255,0.25);
    transition: transform 0.2s;
}

/* ── Nav items ── */
.nav-item[b-5je7972kfj] {
    padding: 1px 0.75rem;
}

.nav-item[b-5je7972kfj]  a {
    color: rgba(255,255,255,0.65);
    border-radius: 8px;
    height: 2.5rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    transition: background 0.15s, color 0.15s;
    text-decoration: none;
}
.nav-item[b-5je7972kfj]  a:hover {
    background: rgba(255,255,255,0.08);
    color: white;
    text-decoration: none;
}
.nav-item[b-5je7972kfj]  a.active {
    background: rgba(99,102,241,0.3);
    color: white;
    font-weight: 600;
}

.nav-icon[b-5je7972kfj] {
    font-size: 1rem;
    width: 1.1rem;
    text-align: center;
    flex-shrink: 0;
}

/* ── User section — sticky at bottom ── */
.user-section[b-5je7972kfj] {
    flex-shrink: 0;
    padding: 0 0.75rem 0.75rem;
}

.user-section-divider[b-5je7972kfj] {
    border-top: 1px solid rgba(255,255,255,0.08);
    margin: 0 0 0.5rem;
}

.user-card[b-5je7972kfj] {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.6rem 0.75rem;
    background: rgba(255,255,255,0.05);
    border-radius: 8px;
    margin-bottom: 6px;
}

.user-avatar[b-5je7972kfj] {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    color: white;
    font-weight: 700;
    flex-shrink: 0;
}

.user-details[b-5je7972kfj] {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}

.user-label[b-5je7972kfj] {
    font-size: 0.65rem;
    color: rgba(255,255,255,0.35);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.user-name[b-5je7972kfj] {
    font-size: 0.825rem;
    color: rgba(255,255,255,0.9);
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.logout-btn[b-5je7972kfj] {
    width: 100%;
    background: none;
    border: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.5);
    cursor: pointer;
    border-radius: 8px;
    height: 2.4rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.logout-btn:hover[b-5je7972kfj] {
    background: rgba(239,68,68,0.15);
    color: #fca5a5;
    border-color: rgba(239,68,68,0.3);
}

/* ── Mobile backdrop ── */
.nav-backdrop[b-5je7972kfj] {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 99;
    backdrop-filter: blur(2px);
}

/* ── Desktop ── */
@media (min-width: 641px) {
    .navbar-toggler[b-5je7972kfj]  { display: none; }
    .nav-backdrop[b-5je7972kfj]    { display: none !important; }
    .collapse[b-5je7972kfj]        { display: flex !important; }

    .nav-scrollable[b-5je7972kfj] {
        height: calc(100vh - 3.5rem);
    }
}

/* ── Mobile ── */
@media (max-width: 640.98px) {
    .navbar-toggler[b-5je7972kfj] { display: flex; }

    .nav-backdrop[b-5je7972kfj] { display: block; }

    .nav-scrollable.collapse[b-5je7972kfj] {
        display: none;
    }

    .nav-scrollable:not(.collapse)[b-5je7972kfj] {
        position: fixed;
        top: 3.5rem;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 100;
        background: #0f172a;
        animation: nav-slide-in-b-5je7972kfj 0.22s ease-out;
    }
}

@keyframes nav-slide-in-b-5je7972kfj {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}
